var mongoose = require('mongoose');

mongoose.connect("mongodb://localhost:27017/blog1711");


mongoose.connection.on('connected',function(){
    console.log('连接成功')
})


mongoose.connection.on('disconnected',function(){
    console.log('连接成功')
})


mongoose.connection.on('error',function(){
    console.log('连接成功')
})

module.exports = mongoose;